package cn.kgc.mushroomdatabaseprovider.service.serviceimpl;

import cn.kgc.mushroomcommon.pojo.Type;
import cn.kgc.mushroomdatabaseprovider.mapper.TypeMapper;
import cn.kgc.mushroomdatabaseprovider.service.TypeService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional(readOnly = true)
public class TypeServiceImpl implements TypeService {

    @Resource
    TypeMapper typeMapper;

    @Override
    public List<Type> selectType() {
         List<Type> types = typeMapper.selectType();
        return types;
    }

    @Override
    public List<Type> selectshoptype(Integer sid) {
         List<Type> selectshoptype = typeMapper.selectshoptype(sid);
        return selectshoptype;
    }
}
